#ifndef _SPI_DRIVER_H
#define _SPI_DRIVER_H

#include <hidef.h>
#include "derivative.h"

#define LEDCPU PORTK_PK4
#define LEDCPU_dir DDRK_DDRK4
#define HOLD PTJ_PTJ0
#define HOLD_dir DDRJ_DDRJ0
#define CS PTS_PTS7
#define CS_dir DDRS_DDRS7


void INIT_SPI(void);
void SPI_send(unsigned char data);
unsigned char SPI_receive(void);
void INIT_FM25040A(void);
void delay(void);
void longdelay(void); 


#endif